/**
 * Created by hubin on 2017/7/6.
 */

var path = require('path');

var test_path1 = '/Users/hubin/Desktop//\/RootPlay-master';
var test_path2 = '/Users/hubin/Desktop/RootPlay-master/index.html';

console.log(path.normalize(test_path1));

console.log(path.dirname(test_path2));

console.log(path.basename(test_path2));

console.log(path.extname(test_path2));


console.log(__dirname);

console.log(__filename);